package cn.sdfykjyxgs.synclient.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import lombok.Data;

@Data
@TableName(value = "file_change_config")
public class FileSynConfig {
    @TableId(value = "id", type = IdType.AUTO)
    @IsKey
    @IsAutoIncrement
    @Column(name = "id", comment = "主键")
    private Integer id;

    private String ip;

    private Long port;
    /**
     * 本地同步路径
     */
    @TableField("localPath")
    private String localPath;
    /**
     * 下载速度（kb/s）
     */
    @TableField("maxRate")
    private Integer maxRate;
    /**
     * 过滤文件格式
     */
    @TableField("filterFormat")
    private String filterFormat;
    /**
     * 同步模式
     */
    private String model;
    /**
     * 定时任务配置
     */
    @TableField("timingStr")
    private String timingStr;

    @TableField(exist = false)
    private String realTimeStatus[];

    /**
     * 文件下载最大重试次数
     */
    @TableField("maxRetryCount")
    private Long maxRetryCount;
}
